<template>
<div class="cart-list">
  <BScroll class="content">
   <cart-listitem v-for="item in cartList" :car-item="item"></cart-listitem>
  </BScroll>

</div>
</template>

<script>
import {mapGetters} from 'vuex'
import BScroll from "@/components/common/scroll/BScroll";
import CartListitem from "@/view/cat/child/CartListitem";
export default {
  name: "CartList",
  props:{
    list:{
      type:Object,
      default (){
        return {}
      }
    }
  },
  components:{
    BScroll,
    CartListitem
  },
  computed:{
    ...mapGetters(['cartList'])
  }
}
</script>

<style scoped>
.cart-list{
  height: 478px;
  overflow: hidden;
  position: relative;
  top:0;
}
.content{
  height: 100%;
 overflow: hidden;

}
img{
  width: 70px;
}
</style>